package com.xjm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjm.entity.vo.AdminVo;
import com.xjm.entity.vo.LoginAdminVo;
import com.xjm.entity.dto.AdminDto;
import com.xjm.entity.model.AdminModel;

public interface AdminService extends IService<AdminModel> {
    LoginAdminVo login(String account, String password);

    Boolean addAdmin(AdminDto adminDto);

    AdminVo getAdminById(Integer id);

    boolean updateAdmin(AdminDto adminDto);

    boolean deleteAdmin(Integer id);
}
